<div id="saleView">
    <h2 class="tab-cont-h2">
        <a href="javascript:;">企业中心</a> &gt; <a href="javascript:;">企业信息管理</a> &gt; <span>下属账号管理</span>
</h2>
    <div class="saleWrap " id="saleWrap">
        <div class="add-view-sub">
            <a href="javascript:;" class="add-sub add-sale">新增</a>
             <!--<a href="javascript:;" class="add-sub import-batch">批量导入</a>
              <a href="javascript:;" class="import-module">导入模板</a>-->
        </div>
        <div id="saleCont">
        </div>
    </div>
    <!-- 新增销售人员窗口 -->
    <div class="modal fade model add-sale-model" id="add-sale-model" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="exampleModalLabel">新增销售账号</h4>
                </div>
                <div class="modal-body">
                    <form class="" id="saleAddForm">
                        <div class="addSubordinateview">
                            <div class="dl">
                                <div class="dt fl">姓  名：</div>
                                <div class="dd fl">
                                    <input type="text" name="sales_name" class="sub-input" id="sales_name" />
                                </div>
                            </div>
                            <div class="dl">
                                <div class="dt fl">联系电话：</div>
                                <div class="dd fl">
                                    <input type="text" name="sales_phone" class="sub-input" id="sales_phone" />
                                </div>
                            </div>
                            <div class="dl button-dl">
                                <input type="submit" name="" value="提交" class="save-submit" id="submitRed" />
                                <input type="button" name="" value="取消" class="cancel" id="cancelRed" />
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="jquery.validate.min.js"></script>
<script type="text/javascript" src="sale.js"></script>
<script type="text/template" id="saleTmp">
    <table  class="table table-hover table-responsive">
        <tr class="thead">
            <td class="td1">编号</td>
            <td class="td3">姓名</td>
            <td class="td4">联系电话</td>
        </tr>
        <tr class="trh7">
            <td class=""></td>
            <td class=""></td>
            <td class=""></td>
        </tr>
        <%_.each(obj,function(item,i){%>
            <tr class="tbody tbody-<%=(i%2 == 0 ? 1:2)%>">
                <td class="td1">
                    <a href="javascript:;">
                        <%=item.company_id%>
                    </a>
                </td>
                <td class="td3">
                    <%=item.sales_name%>
                </td>
                <td class="">
                    <%=item.sales_phone%>
                </td>
            </tr>
            <%})%>
    </table>
</script>
